<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Module: ActiveScaffold::Helpers::ViewHelpers</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Module</strong></td>
          <td class="class-name-in-header">ActiveScaffold::Helpers::ViewHelpers</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_bridge_rb.html">
                vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_bridge.rb
                </a>
        <br />
                <a href="../../../files/vendor/plugins/active_scaffold/lib/helpers/view_helpers_rb.html">
                vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb
                </a>
        <br />
            </td>
        </tr>

        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
All extra helpers that should be included in the View. Also a dumping
ground for uncategorized helpers.
</p>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000181">active_scaffold_config</a>&nbsp;&nbsp;
      <a href="#M000182">active_scaffold_config_for</a>&nbsp;&nbsp;
      <a href="#M000183">active_scaffold_controller_for</a>&nbsp;&nbsp;
      <a href="#M000190">active_scaffold_ie_stylesheets</a>&nbsp;&nbsp;
      <a href="#M000191">active_scaffold_includes</a>&nbsp;&nbsp;
      <a href="#M000180">active_scaffold_includes_with_calendar_date_select</a>&nbsp;&nbsp;
      <a href="#M000188">active_scaffold_javascripts</a>&nbsp;&nbsp;
      <a href="#M000189">active_scaffold_stylesheets</a>&nbsp;&nbsp;
      <a href="#M000198">column_calculation</a>&nbsp;&nbsp;
      <a href="#M000196">column_class</a>&nbsp;&nbsp;
      <a href="#M000197">column_empty?</a>&nbsp;&nbsp;
      <a href="#M000187">form_remote_upload_tag</a>&nbsp;&nbsp;
      <a href="#M000184">generate_temporary_id</a>&nbsp;&nbsp;
      <a href="#M000186">in_subform?</a>&nbsp;&nbsp;
      <a href="#M000194">link_to_visibility_toggle</a>&nbsp;&nbsp;
      <a href="#M000192">loading_indicator_tag</a>&nbsp;&nbsp;
      <a href="#M000185">option_tags_for</a>&nbsp;&nbsp;
      <a href="#M000193">params_for</a>&nbsp;&nbsp;
      <a href="#M000195">render_action_link</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->
    <div id="includes">
      <h3 class="section-bar">Included Modules</h3>

      <div id="includes-list">
        <span class="include-name"><a href="Ids.html">ActiveScaffold::Helpers::Ids</a></span>
        <span class="include-name"><a href="Associations.html">ActiveScaffold::Helpers::Associations</a></span>
        <span class="include-name"><a href="Pagination.html">ActiveScaffold::Helpers::Pagination</a></span>
        <span class="include-name"><a href="ListColumns.html">ActiveScaffold::Helpers::ListColumns</a></span>
        <span class="include-name"><a href="FormColumns.html">ActiveScaffold::Helpers::FormColumns</a></span>
      </div>
    </div>

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000181" class="method-detail">
        <a name="M000181"></a>

        <div class="method-heading">
          <a href="#M000181" class="method-signature">
          <span class="method-name">active_scaffold_config</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
access to the configuration variable
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000181-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 17</span>
17:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_scaffold_config</span>
18:         <span class="ruby-ivar">@controller</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">active_scaffold_config</span>
19:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000182" class="method-detail">
        <a name="M000182"></a>

        <div class="method-heading">
          <a href="#M000182" class="method-signature">
          <span class="method-name">active_scaffold_config_for</span><span class="method-args">(*args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000182-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000182-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 21</span>
21:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_scaffold_config_for</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
22:         <span class="ruby-ivar">@controller</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">active_scaffold_config_for</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
23:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000183" class="method-detail">
        <a name="M000183"></a>

        <div class="method-heading">
          <a href="#M000183" class="method-signature">
          <span class="method-name">active_scaffold_controller_for</span><span class="method-args">(*args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000183-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000183-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 25</span>
25:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_scaffold_controller_for</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
26:         <span class="ruby-ivar">@controller</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">active_scaffold_controller_for</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
27:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000190" class="method-detail">
        <a name="M000190"></a>

        <div class="method-heading">
          <a href="#M000190" class="method-signature">
          <span class="method-name">active_scaffold_ie_stylesheets</span><span class="method-args">(frontend = :default)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Provides stylesheets for IE to include with <tt>stylesheet_link_tag</tt>
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000190-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000190-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 94</span>
94:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_scaffold_ie_stylesheets</span>(<span class="ruby-identifier">frontend</span> = <span class="ruby-identifier">:default</span>)
95:         <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span>.<span class="ruby-identifier">asset_path</span>(<span class="ruby-value str">&quot;stylesheet-ie.css&quot;</span>, <span class="ruby-identifier">frontend</span>)
96:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000191" class="method-detail">
        <a name="M000191"></a>

        <div class="method-heading">
          <a href="#M000191" class="method-signature">
          <span class="method-name">active_scaffold_includes</span><span class="method-args">(frontend = :default)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
easy way to include <a href="../../ActiveScaffold.html">ActiveScaffold</a>
assets
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000191-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000191-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 99</span>
 99:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_scaffold_includes</span>(<span class="ruby-identifier">frontend</span> = <span class="ruby-identifier">:default</span>)
100:         <span class="ruby-identifier">js</span> = <span class="ruby-identifier">javascript_include_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">active_scaffold_javascripts</span>(<span class="ruby-identifier">frontend</span>))
101: 
102:         <span class="ruby-identifier">css</span> = <span class="ruby-identifier">stylesheet_link_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">active_scaffold_stylesheets</span>(<span class="ruby-identifier">frontend</span>))
103:         <span class="ruby-identifier">ie_css</span> = <span class="ruby-identifier">stylesheet_link_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">active_scaffold_ie_stylesheets</span>(<span class="ruby-identifier">frontend</span>))
104: 
105:         <span class="ruby-identifier">js</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\n&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">css</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;\n&lt;!--[if IE]&gt;&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">ie_css</span> <span class="ruby-operator">+</span> <span class="ruby-value str">&quot;&lt;![endif]--&gt;\n&quot;</span>
106:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000180" class="method-detail">
        <a name="M000180"></a>

        <div class="method-heading">
          <a href="#M000180" class="method-signature">
          <span class="method-name">active_scaffold_includes_with_calendar_date_select</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000180-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/bridges/calendar_date_select/lib/as_cds_bridge.rb, line 38</span>
38:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_scaffold_includes_with_calendar_date_select</span>
39:         <span class="ruby-identifier">active_scaffold_includes_without_calendar_date_select</span> <span class="ruby-operator">+</span> 
40:           <span class="ruby-identifier">calendar_date_select_includes</span>
41:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000188" class="method-detail">
        <a name="M000188"></a>

        <div class="method-heading">
          <a href="#M000188" class="method-signature">
          <span class="method-name">active_scaffold_javascripts</span><span class="method-args">(frontend = :default)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Provides list of javascripts to include with
<tt>javascript_include_tag</tt> You can use this with your javascripts like
</p>
<pre>
  &lt;%= javascript_include_tag :defaults, 'your_own_cool_script', active_scaffold_javascripts, :cache =&gt; true %&gt;
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000188-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000188-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 82</span>
82:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_scaffold_javascripts</span>(<span class="ruby-identifier">frontend</span> = <span class="ruby-identifier">:default</span>)
83:         <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span>.<span class="ruby-identifier">javascripts</span>(<span class="ruby-identifier">frontend</span>).<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span>
84:           <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span>.<span class="ruby-identifier">asset_path</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">frontend</span>)
85:         <span class="ruby-keyword kw">end</span>
86:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000189" class="method-detail">
        <a name="M000189"></a>

        <div class="method-heading">
          <a href="#M000189" class="method-signature">
          <span class="method-name">active_scaffold_stylesheets</span><span class="method-args">(frontend = :default)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Provides stylesheets to include with <tt>stylesheet_link_tag</tt>
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000189-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000189-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 89</span>
89:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">active_scaffold_stylesheets</span>(<span class="ruby-identifier">frontend</span> = <span class="ruby-identifier">:default</span>)
90:         <span class="ruby-constant">ActiveScaffold</span><span class="ruby-operator">::</span><span class="ruby-constant">Config</span><span class="ruby-operator">::</span><span class="ruby-constant">Core</span>.<span class="ruby-identifier">asset_path</span>(<span class="ruby-value str">&quot;stylesheet.css&quot;</span>, <span class="ruby-identifier">frontend</span>)
91:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000198" class="method-detail">
        <a name="M000198"></a>

        <div class="method-heading">
          <a href="#M000198" class="method-signature">
          <span class="method-name">column_calculation</span><span class="method-args">(column)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000198-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000198-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 196</span>
196:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">column_calculation</span>(<span class="ruby-identifier">column</span>)
197:         <span class="ruby-identifier">calculation</span> = <span class="ruby-identifier">active_scaffold_config</span>.<span class="ruby-identifier">model</span>.<span class="ruby-identifier">calculate</span>(<span class="ruby-identifier">column</span>.<span class="ruby-identifier">calculate</span>, <span class="ruby-identifier">column</span>.<span class="ruby-identifier">name</span>, <span class="ruby-identifier">:conditions</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:all_conditions</span>),
198:          <span class="ruby-identifier">:joins</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:joins_for_collection</span>), <span class="ruby-identifier">:include</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">:active_scaffold_joins</span>))
199:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000196" class="method-detail">
        <a name="M000196"></a>

        <div class="method-heading">
          <a href="#M000196" class="method-signature">
          <span class="method-name">column_class</span><span class="method-args">(column, column_value)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000196-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000196-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 178</span>
178:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">column_class</span>(<span class="ruby-identifier">column</span>, <span class="ruby-identifier">column_value</span>)
179:         <span class="ruby-identifier">classes</span> = []
180:         <span class="ruby-identifier">classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{column.name}-column&quot;</span>
181:         <span class="ruby-identifier">classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">column</span>.<span class="ruby-identifier">css_class</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">column</span>.<span class="ruby-identifier">css_class</span>.<span class="ruby-identifier">nil?</span>
182:         <span class="ruby-identifier">classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'empty'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">column_empty?</span> <span class="ruby-identifier">column_value</span>
183:         <span class="ruby-identifier">classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'sorted'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">active_scaffold_config</span>.<span class="ruby-identifier">list</span>.<span class="ruby-identifier">user</span>.<span class="ruby-identifier">sorting</span>.<span class="ruby-identifier">sorts_on?</span>(<span class="ruby-identifier">column</span>)
184:         <span class="ruby-identifier">classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'numeric'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">column</span>.<span class="ruby-identifier">column</span> <span class="ruby-keyword kw">and</span> [<span class="ruby-identifier">:decimal</span>, <span class="ruby-identifier">:float</span>, <span class="ruby-identifier">:integer</span>].<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">column</span>.<span class="ruby-identifier">column</span>.<span class="ruby-identifier">type</span>)
185:         <span class="ruby-identifier">classes</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>)
186:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000197" class="method-detail">
        <a name="M000197"></a>

        <div class="method-heading">
          <a href="#M000197" class="method-signature">
          <span class="method-name">column_empty?</span><span class="method-args">(column_value)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000197-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000197-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 188</span>
188:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">column_empty?</span>(<span class="ruby-identifier">column_value</span>)
189:         <span class="ruby-identifier">empty</span> = <span class="ruby-identifier">column_value</span>.<span class="ruby-identifier">nil?</span>
190:         <span class="ruby-identifier">empty</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">column_value</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">column_value</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">:empty?</span>
191:         <span class="ruby-identifier">empty</span> <span class="ruby-operator">||=</span> (<span class="ruby-identifier">column_value</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'&amp;nbsp;'</span>)
192:         <span class="ruby-identifier">empty</span> <span class="ruby-operator">||=</span> (<span class="ruby-identifier">column_value</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">active_scaffold_config</span>.<span class="ruby-identifier">list</span>.<span class="ruby-identifier">empty_field_text</span>)
193:         <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">empty</span>
194:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000187" class="method-detail">
        <a name="M000187"></a>

        <div class="method-heading">
          <a href="#M000187" class="method-signature">
          <span class="method-name">form_remote_upload_tag</span><span class="method-args">(url_for_options = {}, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000187-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000187-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 64</span>
64:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">form_remote_upload_tag</span>(<span class="ruby-identifier">url_for_options</span> = {}, <span class="ruby-identifier">options</span> = {})
65:         <span class="ruby-identifier">onsubmits</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:onsubmit</span>] <span class="ruby-operator">?</span> [ <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:onsubmit</span>] ] <span class="ruby-operator">:</span> [ ]
66:         <span class="ruby-comment cmt"># simulate a &quot;loading&quot;. the setTimeout prevents the Form.disable from being called before the submit, so that data actually posts.</span>
67:         <span class="ruby-identifier">onsubmits</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;setTimeout(function() { #{options[:loading]} }, 10); &quot;</span>
68:         <span class="ruby-identifier">onsubmits</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot;return true&quot;</span> <span class="ruby-comment cmt"># make sure the form still submits</span>
69: 
70:         <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:onsubmit</span>] = <span class="ruby-identifier">onsubmits</span> <span class="ruby-operator">*</span> <span class="ruby-value str">';'</span>
71:         <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:target</span>] = <span class="ruby-identifier">action_iframe_id</span>(<span class="ruby-identifier">url_for_options</span>)
72:         <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:multipart</span>] = <span class="ruby-keyword kw">true</span>
73: 
74:         <span class="ruby-identifier">output</span>=<span class="ruby-value str">&quot;&quot;</span>
75:         <span class="ruby-identifier">output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;&lt;iframe id='#{action_iframe_id(url_for_options)}' name='#{action_iframe_id(url_for_options)}' style='display:none'&gt;&lt;/iframe&gt;&quot;</span>
76:         <span class="ruby-identifier">output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">form_tag</span>(<span class="ruby-identifier">url_for_options</span>, <span class="ruby-identifier">options</span>)
77:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000184" class="method-detail">
        <a name="M000184"></a>

        <div class="method-heading">
          <a href="#M000184" class="method-signature">
          <span class="method-name">generate_temporary_id</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Uncategorized
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000184-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000184-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 33</span>
33:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_temporary_id</span>
34:         (<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_f</span><span class="ruby-operator">*</span><span class="ruby-value">1000</span>).<span class="ruby-identifier">to_i</span>.<span class="ruby-identifier">to_s</span>
35:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000186" class="method-detail">
        <a name="M000186"></a>

        <div class="method-heading">
          <a href="#M000186" class="method-signature">
          <span class="method-name">in_subform?</span><span class="method-args">(column, parent_record)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Should this column be displayed in the subform?
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000186-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000186-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 48</span>
48:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in_subform?</span>(<span class="ruby-identifier">column</span>, <span class="ruby-identifier">parent_record</span>)
49:         <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">column</span>.<span class="ruby-identifier">association</span>
50: 
51:         <span class="ruby-comment cmt"># Polymorphic associations can't appear because they *might* be the reverse association, and because you generally don't assign an association from the polymorphic side ... I think.</span>
52:         <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">column</span>.<span class="ruby-identifier">polymorphic_association?</span>
53: 
54:         <span class="ruby-comment cmt"># We don't have the UI to currently handle habtm in subforms</span>
55:         <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">column</span>.<span class="ruby-identifier">association</span>.<span class="ruby-identifier">macro</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:has_and_belongs_to_many</span>
56: 
57:         <span class="ruby-comment cmt"># A column shouldn't be in the subform if it's the reverse association to the parent</span>
58:         <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">column</span>.<span class="ruby-identifier">association</span>.<span class="ruby-identifier">reverse_for?</span>(<span class="ruby-identifier">parent_record</span>.<span class="ruby-identifier">class</span>)
59:         <span class="ruby-comment cmt">#return false if column.association.klass == parent_record.class</span>
60: 
61:         <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">true</span>
62:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000194" class="method-detail">
        <a name="M000194"></a>

        <div class="method-heading">
          <a href="#M000194" class="method-signature">
          <span class="method-name">link_to_visibility_toggle</span><span class="method-args">(options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Creates a javascript-based link that toggles the visibility of some element
on the page. By default, it toggles the visibility of the sibling after the
one it&#8216;s nested in. You may pass custom javascript logic in
options[:of] to change that, though. For example, you could say :of =&gt;
&#8217;$(&quot;my_div_id&quot;)&#8217;. You may also flag whether the other
element is visible by default or not, and the initial text will adjust
accordingly.
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000194-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000194-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 130</span>
130:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_to_visibility_toggle</span>(<span class="ruby-identifier">options</span> = {})
131:         <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:of</span>] <span class="ruby-operator">||=</span> <span class="ruby-value str">'$(this.parentNode).next()'</span>
132:         <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:default_visible</span>] = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:default_visible</span>].<span class="ruby-identifier">nil?</span>
133: 
134:         <span class="ruby-identifier">link_text</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:default_visible</span>] <span class="ruby-operator">?</span> <span class="ruby-value str">'hide'</span> <span class="ruby-operator">:</span> <span class="ruby-value str">'show'</span>
135:         <span class="ruby-identifier">link_to_function</span> <span class="ruby-identifier">as_</span>(<span class="ruby-identifier">link_text</span>), <span class="ruby-node">&quot;e = #{options[:of]}; e.toggle(); this.innerHTML = (e.style.display == 'none') ? '#{as_('show')}' : '#{as_('hide')}'&quot;</span>, <span class="ruby-identifier">:class</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'visibility-toggle'</span>
136:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000192" class="method-detail">
        <a name="M000192"></a>

        <div class="method-heading">
          <a href="#M000192" class="method-signature">
          <span class="method-name">loading_indicator_tag</span><span class="method-args">(options)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
a general-use loading indicator (the &quot;stuff is happening, please
wait&quot; feedback)
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000192-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000192-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 109</span>
109:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">loading_indicator_tag</span>(<span class="ruby-identifier">options</span>)
110:         <span class="ruby-identifier">image_tag</span> <span class="ruby-value str">&quot;/images/active_scaffold/default/indicator.gif&quot;</span>, <span class="ruby-identifier">:style</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;visibility:hidden;&quot;</span>, <span class="ruby-identifier">:id</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">loading_indicator_id</span>(<span class="ruby-identifier">options</span>), <span class="ruby-identifier">:alt</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;loading indicator&quot;</span>, <span class="ruby-identifier">:class</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;loading-indicator&quot;</span>
111:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000185" class="method-detail">
        <a name="M000185"></a>

        <div class="method-heading">
          <a href="#M000185" class="method-signature">
          <span class="method-name">option_tags_for</span><span class="method-args">(select_options, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Turns [[label, value]] into &lt;option&gt; tags Takes optional parameter of
:include_blank
</p>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000185-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 39</span>
39:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">option_tags_for</span>(<span class="ruby-identifier">select_options</span>, <span class="ruby-identifier">options</span> = {})
40:         <span class="ruby-identifier">select_options</span>.<span class="ruby-identifier">insert</span>(<span class="ruby-value">0</span>,[<span class="ruby-identifier">as_</span>(<span class="ruby-value str">'- select -'</span>),<span class="ruby-keyword kw">nil</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:include_blank</span>]
41:         <span class="ruby-identifier">select_options</span>.<span class="ruby-identifier">collect</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">option</span><span class="ruby-operator">|</span>
42:           <span class="ruby-identifier">label</span>, <span class="ruby-identifier">value</span> = <span class="ruby-identifier">option</span>[<span class="ruby-value">0</span>], <span class="ruby-identifier">option</span>[<span class="ruby-value">1</span>]
43:           <span class="ruby-identifier">value</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-value str">&quot;&lt;option value=&quot;</span><span class="ruby-node">&quot;&gt;#{label}&lt;/option&gt;&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-node">&quot;&lt;option value=\&quot;#{value}\&quot;&gt;#{label}&lt;/option&gt;&quot;</span>
44:         <span class="ruby-keyword kw">end</span>
45:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000193" class="method-detail">
        <a name="M000193"></a>

        <div class="method-heading">
          <a href="#M000193" class="method-signature">
          <span class="method-name">params_for</span><span class="method-args">(options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000193-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000193-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 113</span>
113:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">params_for</span>(<span class="ruby-identifier">options</span> = {})
114:         <span class="ruby-comment cmt"># :adapter and :position are one-use rendering arguments. they should not propagate.</span>
115:         <span class="ruby-comment cmt"># :sort, :sort_direction, and :page are arguments that stored in the session. they need not propagate.</span>
116:         <span class="ruby-comment cmt"># and wow. no we don't want to propagate :record.</span>
117:         <span class="ruby-comment cmt"># :commit is a special rails variable for form buttons</span>
118:         <span class="ruby-identifier">blacklist</span> = [<span class="ruby-identifier">:adapter</span>, <span class="ruby-identifier">:position</span>, <span class="ruby-identifier">:sort</span>, <span class="ruby-identifier">:sort_direction</span>, <span class="ruby-identifier">:page</span>, <span class="ruby-identifier">:record</span>, <span class="ruby-identifier">:commit</span>, <span class="ruby-identifier">:_method</span>]
119:         <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@params_for</span>
120:           <span class="ruby-ivar">@params_for</span> = <span class="ruby-identifier">params</span>.<span class="ruby-identifier">clone</span>.<span class="ruby-identifier">delete_if</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">blacklist</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">key</span>.<span class="ruby-identifier">to_sym</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span> }
121:           <span class="ruby-ivar">@params_for</span>[<span class="ruby-identifier">:controller</span>] = <span class="ruby-value str">'/'</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@params_for</span>[<span class="ruby-identifier">:controller</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@params_for</span>[<span class="ruby-identifier">:controller</span>].<span class="ruby-identifier">first</span>(<span class="ruby-value">1</span>) <span class="ruby-operator">==</span> <span class="ruby-value str">'/'</span> <span class="ruby-comment cmt"># for namespaced controllers</span>
122:           <span class="ruby-ivar">@params_for</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:id</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@params_for</span>[<span class="ruby-identifier">:id</span>].<span class="ruby-identifier">nil?</span>
123:         <span class="ruby-keyword kw">end</span>
124:         <span class="ruby-ivar">@params_for</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>)
125:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000195" class="method-detail">
        <a name="M000195"></a>

        <div class="method-heading">
          <a href="#M000195" class="method-signature">
          <span class="method-name">render_action_link</span><span class="method-args">(link, url_options)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000195-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000195-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/active_scaffold/lib/helpers/view_helpers.rb, line 138</span>
138:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_action_link</span>(<span class="ruby-identifier">link</span>, <span class="ruby-identifier">url_options</span>)
139:         <span class="ruby-identifier">url_options</span> = <span class="ruby-identifier">url_options</span>.<span class="ruby-identifier">clone</span>
140:         <span class="ruby-identifier">url_options</span>[<span class="ruby-identifier">:action</span>] = <span class="ruby-identifier">link</span>.<span class="ruby-identifier">action</span>
141:         <span class="ruby-identifier">url_options</span>[<span class="ruby-identifier">:controller</span>] = <span class="ruby-identifier">link</span>.<span class="ruby-identifier">controller</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">controller</span>
142:         <span class="ruby-identifier">url_options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:search</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">controller</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">controller</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:controller</span>]
143:         <span class="ruby-identifier">url_options</span>.<span class="ruby-identifier">merge!</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">parameters</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">parameters</span>
144: 
145:         <span class="ruby-identifier">html_options</span> = {<span class="ruby-identifier">:class</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">action</span>}
146:         <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">inline?</span>
147:           <span class="ruby-comment cmt"># NOTE this is in url_options instead of html_options on purpose. the reason is that the client-side</span>
148:           <span class="ruby-comment cmt"># action link javascript needs to submit the proper method, but the normal html_options[:method]</span>
149:           <span class="ruby-comment cmt"># argument leaves no way to extract the proper method from the rendered tag.</span>
150:           <span class="ruby-identifier">url_options</span>[<span class="ruby-identifier">:_method</span>] = <span class="ruby-identifier">link</span>.<span class="ruby-identifier">method</span>
151: 
152:           <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">method</span> <span class="ruby-operator">!=</span> <span class="ruby-identifier">:get</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:protect_against_forgery?</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">protect_against_forgery?</span>
153:             <span class="ruby-identifier">url_options</span>[<span class="ruby-identifier">:authenticity_token</span>] = <span class="ruby-identifier">form_authenticity_token</span>
154:           <span class="ruby-keyword kw">end</span>
155:         <span class="ruby-keyword kw">else</span>
156:           <span class="ruby-comment cmt"># Needs to be in html_options to as the adding _method to the url is no longer supported by Rails</span>
157:           <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:method</span>] = <span class="ruby-identifier">link</span>.<span class="ruby-identifier">method</span>
158:         <span class="ruby-keyword kw">end</span>
159: 
160:         <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:confirm</span>] = <span class="ruby-identifier">link</span>.<span class="ruby-identifier">confirm</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">confirm?</span>
161:         <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:position</span>] = <span class="ruby-identifier">link</span>.<span class="ruby-identifier">position</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">position</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">inline?</span>
162:         <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:class</span>] <span class="ruby-operator">+=</span> <span class="ruby-value str">' action'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">inline?</span>
163:         <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:popup</span>] = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">popup?</span>
164:         <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:id</span>] = <span class="ruby-identifier">action_link_id</span>(<span class="ruby-identifier">url_options</span>[<span class="ruby-identifier">:action</span>],<span class="ruby-identifier">url_options</span>[<span class="ruby-identifier">:id</span>])
165: 
166:         <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">dhtml_confirm?</span>
167:           <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:class</span>] <span class="ruby-operator">+=</span> <span class="ruby-value str">' action'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">link</span>.<span class="ruby-identifier">inline?</span>
168:           <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:page_link</span>] = <span class="ruby-value str">'true'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">link</span>.<span class="ruby-identifier">inline?</span>
169:           <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:dhtml_confirm</span>] = <span class="ruby-identifier">link</span>.<span class="ruby-identifier">dhtml_confirm</span>.<span class="ruby-identifier">value</span>
170:           <span class="ruby-identifier">html_options</span>[<span class="ruby-identifier">:onclick</span>] = <span class="ruby-identifier">link</span>.<span class="ruby-identifier">dhtml_confirm</span>.<span class="ruby-identifier">onclick_function</span>(<span class="ruby-identifier">controller</span>,<span class="ruby-identifier">action_link_id</span>(<span class="ruby-identifier">url_options</span>[<span class="ruby-identifier">:action</span>],<span class="ruby-identifier">url_options</span>[<span class="ruby-identifier">:id</span>]))
171:         <span class="ruby-keyword kw">end</span>
172: 
173:         <span class="ruby-comment cmt"># issue 260, use url_options[:link] if it exists. This prevents DB data from being localized.</span>
174:         <span class="ruby-identifier">label</span> = <span class="ruby-identifier">url_options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:link</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">link</span>.<span class="ruby-identifier">label</span>
175:         <span class="ruby-identifier">link_to</span> <span class="ruby-identifier">label</span>, <span class="ruby-identifier">url_options</span>, <span class="ruby-identifier">html_options</span>
176:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>